﻿namespace RentAWorker.Desktop.Entities
{
    using System.Runtime.Serialization;

    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Name = "RentResource", Namespace = "http://schemas.datacontract.org/2004/07/RentAWorker.Desktop.Entities", IsReference = true)]
    [System.Runtime.Serialization.KnownTypeAttribute(typeof(RentAWorker.Desktop.Entities.Machine))]
    [System.Runtime.Serialization.KnownTypeAttribute(typeof(RentAWorker.Desktop.Entities.Worker))]
    public partial class RentResource : System.Data.Objects.DataClasses.EntityObject
    {

        private Location LocationField;

        private System.Data.Objects.DataClasses.EntityReferenceOfLocationf7ZsOIiW LocationReferenceField;

        private string NameField;

        private RentalService[] RentalServicesField;

        private int ResourceIDField;

        [System.Runtime.Serialization.DataMemberAttribute()]
        public Location Location
        {
            get
            {
                return this.LocationField;
            }
            set
            {
                this.LocationField = value;
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public System.Data.Objects.DataClasses.EntityReferenceOfLocationf7ZsOIiW LocationReference
        {
            get
            {
                return this.LocationReferenceField;
            }
            set
            {
                this.LocationReferenceField = value;
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Name
        {
            get
            {
                return this.NameField;
            }
            set
            {
                this.NameField = value;
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public RentalService[] RentalServices
        {
            get
            {
                return this.RentalServicesField;
            }
            set
            {
                this.RentalServicesField = value;
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public int ResourceID
        {
            get
            {
                return this.ResourceIDField;
            }
            set
            {
                this.ResourceIDField = value;
            }
        }
    }
}